package com.github.catvod.spider;

import android.util.Base64;
import com.github.catvod.crawler.Spider;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0013;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.fP;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class Jpys extends Spider {

    /* renamed from: short, reason: not valid java name */
    private static final short[] f29short = {3199, 3195, 3192, 3172, 3172, 3168, 3135, 3109, 3134, 3104, 3134, 3104, 3133, 3185, 3196, 3168, 3192, 3185, 3134, 3105, 3108, 2498, 2500, 2514, 2501, 2458, 2518, 2512, 2514, 2521, 2499, 2231, 2230, 2213, 2234, 2224, 2230, 2234, 2231, 2491, 2458, 2441, 2454, 2460, 2458, 2454, 2459, 2086, 2076, 2066, 2075, 280, 1619, 1622, 1612, 1611, 1872, 1822, 1807, 1814, 1872, 1810, 1800, 1874, 1810, 1808, 1801, 1814, 1818, 1872, 1822, 1809, 1808, 1809, 1798, 1810, 1808, 1802, 1804, 1872, 1801, 1814, 1819, 1818, 1808, 1872, 1811, 1814, 1804, 1803, 1856, 1803, 1798, 1807, 1818, 1870, 1858, 2591, 2633, 2648, 2654, 2652, 2679, 2636, 2644, 2564, 2877, 2938, 2921, 2942, 2938, 2854, 2877, 2914, 2942, 2938, 2921, 2854, 3157, 3142, 3153, 3157, 3081, 3090, 3140, 3157, 3155, 3153, 3194, 3137, 3161, 3081, 2159, 2109, 2096, 2105, 2092, 2168, 2164, 2673, 2606, 2610, 2614, 2597, 2666, 2673, 2620, 2610, 2606, 2666, 2612, 2613, 2671, 2663, 2671, 2658, 2661, 2670, 2613, 2614, 2610, 2657, 2613, 2657, 2613, 2610, 2659, 2658, 2610, 2612, 2609, 2614, 2613, 2661, 2670, 2614, 2659, 2671, 2671, 2670, 2613, 2612, 2673, 2595, 2666, 2869, 2864, 2853, 2864, 1194, 1203, 1208, 1155, 1205, 1208, 2680, 2657, 2666, 2631, 2666, 2525, 2500, 2511, 2548, 2501, 2506, 2502, 2510, 545, 568, 563, 537, 566, 570, 562, 2969, 2944, 2955, 2992, 2975, 2950, 2956, 2450, 2443, 2432, 2484, 2445, 2439, 2200, 2177, 2186, 2236, 2187, 2179, 2191, 2204, 2181, 2205, 2676, 2671, 2678, 2678, 1269, 1260, 1255, 1244, 1265, 1254, 1262, 1250, 1265, 1256, 1264, 3003, 2986, 2988, 2990, 1612, 1629, 1627, 1625, 1631, 1619, 1609, 1618, 1608, 2884, 2881, 2885, 2881, 2908, 3281, 3274, 3281, 3268, 3273, 1611, 1616, 1609, 1609, 2731, 2789, 2804, 2797, 2731, 2793, 2803, 2729, 2793, 2795, 2802, 2797, 2785, 2731, 2789, 2794, 2795, 2794, 2813, 2793, 2795, 2801, 2807, 2731, 2802, 2797, 2784, 2785, 2795, 2731, 2784, 2785, 2800, 2789, 2797, 2792, 2747, 2797, 2784, 2745, 928, 941, 1012, 2432, 2509, 2499, 2527, 2459, 2501, 2500, 2462, 2454, 2462, 2451, 2452, 2463, 2500, 2503, 2499, 2448, 2500, 2448, 2500, 2499, 2450, 2451, 2499, 2501, 2496, 2503, 2500, 2452, 2463, 2503, 2450, 2462, 2462, 2463, 2500, 2501, 2432, 2514, 2459, 1038, 1035, 1054, 1035, 2156, 2165, 2174, 2117, 2163, 2174, 895, 870, 877, 832, 877, 1561, 1536, 1547, 1584, 1537, 1550, 1538, 1546, 2565, 2588, 2583, 2621, 2578, 2590, 2582, 803, 826, 817, 778, 805, 828, 822, 1523, 1514, 1505, 1493, 1516, 1510, 3044, 3049, 3040, 3061, 3023, 3070, 3057, 3069, 3061, 479, 466, 475, 462, 485, 458, 454, 462, 1742, 1751, 1756, 1767, 1729, 1757, 1753, 1738, 1550, 1559, 1564, 1569, 1565, 1561, 1546, 3033, 3008, 3019, 3056, 3022, 3037, 3018, 3022, 2924, 2933, 2942, 2907, 2920, 2943, 2939, 548, 573, 566, 512, 567, 575, 563, 544, 569, 545, 2762, 2771, 2776, 2787, 2766, 2777, 2769, 2781, 2766, 2775, 2767, 1165, 1172, 1183, 1188, 1178, 1176, 1167, 1172, 1161, 1124, 1149, 1142, 1107, 1137, 1126, 1149, 1120, 2506, 2515, 2520, 2531, 2520, 2517, 2510, 2521, 2527, 2504, 2515, 2510, 2772, 2765, 2758, 2790, 2763, 2768, 2759, 2753, 2774, 2765, 2768, 2318, 2327, 2332, 2363, 2327, 2326, 2316, 2333, 2326, 2316, 1299, 1290, 1281, 1338, 1286, 1290, 1291, 1297, 1280, 1291, 1297, 986, 975, 982, 972, 976, 987, 986, 1011, 982, 972, 971, 834, 845, 833, 841, 2298, 2428, 2427, 2422, 613, 3165, 516, 516, 516, 995, 1018, 1009, 970, 997, 1017, 1012, 1004, 970, 1011, 999, 1018, 1016, -28741, 23087, 29364, 28619, 2008, 1985, 1994, 2033, 2014, 1986, 1999, 2007, 2033, 2011, 2012, 1986, 272, 277, 271, 264, 2015, 2047, 1958, 2032, 2045, 2036, 2017, 2011, 2029, 2016, 1958, 1982, 1958, 1973, 1958, 1960, 1958, 2032, 2045, 2036, 2017, 2011, 2026, 2021, 2025, 2017, 1958, 1982, 1958, 29361, 22773, 1958, 2041, 1960, 2047, 1958, 2032, 2045, 2036, 2017, 2011, 2029, 2016, 1958, 1982, 1958, 1974, 1958, 1960, 1958, 2032, 2045, 2036, 2017, 2011, 2026, 2021, 2025, 2017, 1958, 1982, 1958, 29361, -29118, 21987, 1958, 2041, 1960, 2047, 1958, 2032, 2045, 2036, 2017, 2011, 2029, 2016, 1958, 1982, 1958, 1975, 1958, 1960, 1958, 2032, 2045, 2036, 2017, 2011, 2026, 2021, 2025, 2017, 1958, 1982, 1958, 31096, -31234, 1958, 2041, 1960, 2047, 1958, 2032, 2045, 2036, 2017, 2011, 2029, 2016, 1958, 1982, 1958, 1968, 1958, 1960, 1958, 2032, 2045, 2036, 2017, 2011, 2026, 2021, 2025, 2017, 1958, 1982, 1958, 21804, 26799, 1958, 2041, 2009, 942, 929, 940, 958, 958, 2342, 2408, 2425, 2400, 2342, 2404, 2430, 2340, 2404, 2406, 2431, 2400, 2412, 2342, 2408, 2407, 2406, 2407, 2416, 2404, 2406, 2428, 2426, 2342, 2401, 2406, 2404, 2412, 2342, 2401, 2406, 2429, 2394, 2412, 2408, 2427, 2410, 2401, 2254, 2240, 2268, 2200, 2246, 2247, 2205, 2197, 2205, 2192, 2199, 2204, 2247, 2244, 2240, 2195, 2247, 2195, 2247, 2240, 2193, 2192, 2240, 2246, 2243, 2244, 2247, 2199, 2204, 2244, 2193, 2205, 2205, 2204, 2247, 2246, 2179, 2257, 2200, 793, 796, 777, 796, 1120, 1145, 1138, 1119, 1138, 1409, 1432, 1427, 1465, 1430, 1434, 1426, 2335, 2310, 2317, 2361, 2304, 2314, 1712, 1705, 1698, 1684, 1699, 1707, 1703, 1716, 1709, 1717, 2784, 2809, 2802, 2761, 2815, 2802, 666, 643, 648, 691, 642, 653, 641, 649, 3000, 2977, 2986, 2961, 3006, 2983, 2989, 2670, 2679, 2684, 2631, 2666, 2685, 2677, 2681, 2666, 2675, 2667, 2952, 2957, 2967, 2960, 1463, 1535, 1528, 1525, 1452, 1951, 1944, 1926, 2991, 2959, 432, 510, 495, 502, 432, 498, 488, 434, 498, 496, 489, 502, 506, 432, 510, 497, 496, 497, 486, 498, 496, 490, 492, 432, 489, 430, 432, 489, 502, 507, 506, 496, 432, 506, 495, 502, 492, 496, 507, 506, 432, 490, 493, 499, 416, 502, 507, 418, 452, 457, 400, 1617, 1564, 1554, 1550, 1610, 1556, 1557, 1615, 1607, 1615, 1602, 1605, 1614, 1557, 1558, 1554, 1601, 1557, 1601, 1557, 1554, 1603, 1602, 1554, 1556, 1553, 1558, 1557, 1605, 1614, 1558, 1603, 1615, 1615, 1614, 1557, 1556, 1617, 1539, 1610, 3063, 3046, 3061, 3060, 3042, 1413, 1408, 1429, 1408, 545, 573, 560, 552, 516, 547, 573, 2436, 2433, 2459, 2460, 3121, 3199, 3182, 
    3191, 3121, 3187, 3177, 3123, 3187, 3185, 3176, 3191, 3195, 3121, 3199, 3184, 3185, 3184, 3175, 3187, 3185, 3179, 3181, 3121, 3176, 3191, 3194, 3195, 3185, 3121, 3181, 3195, 3199, 3180, 3197, 3190, 3164, 3175, 3145, 3185, 3180, 3194, 3105, 3189, 3195, 3175, 3177, 3185, 3180, 3194, 3107, 2672, 2598, 2615, 2609, 2611, 2584, 2595, 2619, 2667, 2663, 2672, 2598, 2615, 2609, 2611, 2565, 2623, 2604, 2611, 2667, 2670, 489, 487, 507, 501, 493, 496, 486, 447, 2405, 2355, 2338, 2340, 2342, 2317, 2358, 2350, 2430, 2418, 2405, 2355, 2338, 2340, 2342, 2320, 2346, 2361, 2342, 2430, 2427, 2405, 2344, 2342, 2362, 2430, 2336, 2337, 2427, 2419, 2427, 2422, 2417, 2426, 2337, 2338, 2342, 2421, 2337, 2421, 2337, 2342, 2423, 2422, 2342, 2336, 2341, 2338, 2337, 2417, 2426, 2338, 2423, 2427, 2427, 2426, 2337, 2336, 2405, 2359, 2430, 1579, 1582, 1595, 1582, 1987, 2004, 1986, 1988, 2013, 1989, 1694, 1671, 1676, 1719, 1665, 1676, 3302, 3327, 3316, 3289, 3316, 2232, 2209, 2218, 2193, 2208, 2223, 2211, 2219, 2436, 2461, 2454, 2492, 2451, 2463, 2455, 437, 428, 423, 412, 435, 426, 416, 2001, 1992, 1987, 2039, 1998, 1988, 2511, 2518, 2525, 2539, 2524, 2516, 2520, 2507, 2514, 2506, 551, 572, 549, 549, 1701, 1724, 1719, 1676, 1697, 1718, 1726, 1714, 1697, 1720, 1696};
    private String h = "";
    private String V0 = C0017.m52(f29short, 0, 21, 3088);
    private String j = "";

    public Jpys() {
        int m44 = C0014.m44();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m44 <= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Double.valueOf(C0012.m36("vcEbUYNB")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:60:0x00a1, code lost:
    
        return r4;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    private java.util.HashMap<java.lang.String, java.lang.String> V0(java.lang.String r9, java.lang.String r10) {
        /*
            r8 = this;
            r7 = 8
            r0 = 0
            java.lang.String r1 = "ۤۦۨ"
            r2 = r0
            r3 = r0
            r4 = r0
            r5 = r1
            r1 = r0
        La:
            int r5 = com.github.catvod.parser.C0006.m20(r5)
            switch(r5) {
                case 1746753: goto L5f;
                case 1746875: goto L16;
                case 1747649: goto La1;
                case 1748649: goto L2e;
                case 1748735: goto L1c;
                case 1750535: goto L88;
                case 1750663: goto L83;
                case 1751555: goto L59;
                case 1751586: goto L3a;
                case 1751654: goto L7e;
                case 1751685: goto L9a;
                case 1751718: goto L76;
                case 1752484: goto L94;
                case 1753447: goto L8e;
                case 1753453: goto L33;
                case 1753507: goto L4e;
                case 1753634: goto L41;
                case 1754569: goto L28;
                case 1754593: goto L6a;
                default: goto L11;
            }
        L11:
            short[] r1 = com.github.catvod.spider.Jpys.f29short
            java.lang.String r5 = "ۧۦ۠"
            goto La
        L16:
            r4.put(r2, r10)
            java.lang.String r5 = "۠۟۠"
            goto La
        L1c:
            r0 = 47
            r5 = 4
            r6 = 2165(0x875, float:3.034E-42)
            java.lang.String r0 = com.github.catvod.parser.C0000.m1(r1, r0, r5, r6)
            java.lang.String r5 = "ۤۡ۠"
            goto La
        L28:
            r4.put(r0, r2)
            java.lang.String r5 = "ۦ۠ۡ"
            goto La
        L2e:
            short[] r1 = com.github.catvod.spider.Jpys.f29short
            java.lang.String r5 = "ۦۢ۟"
            goto La
        L33:
            java.lang.String r9 = com.github.catvod.spider.merge.CE.V0(r2)
            java.lang.String r5 = "ۣۣۧ"
            goto La
        L3a:
            java.lang.String r2 = com.github.catvod.spider.merge.CE.h(r9, r3)
            java.lang.String r5 = "ۦ۠ۧ"
            goto La
        L41:
            r0 = 21
            r5 = 10
            r6 = 2487(0x9b7, float:3.485E-42)
            java.lang.String r0 = com.github.catvod.parser.C0001.m3(r1, r0, r5, r6)
            java.lang.String r5 = "ۧۥۧ"
            goto La
        L4e:
            r2 = 39
            r5 = 2559(0x9ff, float:3.586E-42)
            java.lang.String r2 = com.github.catvod.parser.C0001.m3(r1, r2, r7, r5)
            java.lang.String r5 = "ۤۥۦ"
            goto La
        L59:
            r4.put(r0, r9)
            java.lang.String r5 = "ۣۤ"
            goto La
        L5f:
            r0 = 31
            r5 = 2259(0x8d3, float:3.166E-42)
            java.lang.String r0 = com.github.catvod.parser.C0000.m1(r1, r0, r7, r5)
            java.lang.String r5 = "ۡ۠ۨ"
            goto La
        L6a:
            r2 = 51
            r5 = 1
            r6 = 364(0x16c, float:5.1E-43)
            java.lang.String r2 = com.github.catvod.parser.C0008.m27(r1, r2, r5, r6)
            java.lang.String r5 = "۟ۥۡ"
            goto La
        L76:
            java.util.HashMap r4 = new java.util.HashMap
            r4.<init>()
            java.lang.String r5 = "ۥ۠۟"
            goto La
        L7e:
            short[] r1 = com.github.catvod.spider.Jpys.f29short
            java.lang.String r5 = "ۣۡۡ"
            goto La
        L83:
            java.lang.String r2 = r8.V0
            java.lang.String r5 = "ۣۣ۟"
            goto La
        L88:
            short[] r1 = com.github.catvod.spider.Jpys.f29short
            java.lang.String r5 = "ۦۦۢ"
            goto La
        L8e:
            short[] r1 = com.github.catvod.spider.Jpys.f29short
            java.lang.String r5 = "ۣ۟ۡ"
            goto La
        L94:
            java.nio.charset.Charset r3 = com.github.catvod.spider.merge.CE.V0
            java.lang.String r5 = "ۤۢ۠"
            goto La
        L9a:
            r4.put(r0, r2)
            java.lang.String r5 = "ۤۤۦ"
            goto La
        La1:
            return r4
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Jpys.V0(java.lang.String, java.lang.String):java.util.HashMap");
    }

    private void h() {
        this.h = new String(Base64.decode(this.j.substring(1), 0));
        int m24 = C0007.m24();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m24 >= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Integer.parseInt(C0002.m7("1S")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:36:0x00ef. Please report as an issue. */
    public String categoryContent(String str, String str2, boolean z, HashMap<String, String> hashMap) {
        String m27 = C0008.m27(f29short, 52, 4, 1599);
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = isEmpty ? 1709 : 1678;
                    case 204:
                        h();
                        break;
                    case 239:
                        break;
                }
            }
            int parseInt = Integer.parseInt(str2);
            int i2 = 1740;
            while (true) {
                i2 ^= 1757;
                switch (i2) {
                    case 17:
                        i2 = parseInt == 0 ? 1833 : 1802;
                    case 54:
                    case 471:
                        break;
                    case 500:
                        parseInt = 1;
                        break;
                }
            }
            String str3 = this.h + C0003.m9(f29short, 56, 41, 1919) + str + C0001.m3(f29short, 97, 9, 2617) + str2 + C0003.m9(f29short, 106, 12, 2843);
            JSONArray jSONArray = new JSONArray();
            String valueOf = String.valueOf(System.currentTimeMillis());
            JSONArray jSONArray2 = new JSONObject(fP.oq(str3, V0(C0017.m52(f29short, 118, 14, 3124) + str2 + C0003.m9(f29short, 132, 7, 2121) + str + C0000.m1(f29short, 139, 46, 2647) + valueOf, valueOf))).getJSONObject(C0003.m9(f29short, 185, 4, 2897)).getJSONArray(m27);
            int i3 = 0;
            while (true) {
                int length = jSONArray2.length();
                int i4 = 1864;
                while (true) {
                    i4 ^= 1881;
                    switch (i4) {
                        case 17:
                            i4 = i3 < length ? 48736 : 48705;
                        case 47384:
                            break;
                        case 47417:
                            JSONObject jSONObject = jSONArray2.getJSONObject(i3);
                            JSONObject jSONObject2 = new JSONObject();
                            jSONObject2.put(C0008.m27(f29short, 189, 6, 1244), jSONObject.getString(C0001.m3(f29short, 195, 5, 2574)));
                            jSONObject2.put(C0017.m52(f29short, 200, 8, 2475), jSONObject.getString(C0014.m43(f29short, 208, 7, 599)));
                            jSONObject2.put(C0003.m9(f29short, 215, 7, 3055), jSONObject.optString(C0005.m17(f29short, 222, 6, 2532)));
                            String optString = jSONObject.optString(C0011.m35(f29short, 228, 10, 2286));
                            boolean equals = optString.equals(C0017.m52(f29short, 238, 4, 2586));
                            int i5 = 48767;
                            while (true) {
                                i5 ^= 48784;
                                switch (i5) {
                                    case 14:
                                    case 45:
                                        break;
                                    case 76:
                                        optString = "";
                                        break;
                                    case 239:
                                        i5 = equals ? 48860 : 48829;
                                }
                            }
                            jSONObject2.put(C0003.m9(f29short, 242, 11, 1155), optString);
                            jSONArray.put(jSONObject2);
                            int i6 = i3 + 1;
                            int i7 = 48891;
                            while (true) {
                                i7 ^= 48908;
                                switch (i7) {
                                    case 22:
                                        break;
                                    case 503:
                                        i7 = 48922;
                                        break;
                                }
                            }
                            i3 = i6;
                            break;
                        case 47483:
                    }
                    JSONObject jSONObject3 = new JSONObject();
                    jSONObject3.put(C0002.m6(f29short, 253, 4, 3019), parseInt);
                    int length2 = jSONArray.length();
                    int i8 = 49666;
                    while (true) {
                        i8 ^= 49683;
                        switch (i8) {
                            case 17:
                                if (length2 != 48) {
                                    break;
                                } else {
                                    i8 = 49759;
                                }
                            case 50:
                                break;
                            case 76:
                                parseInt++;
                                break;
                            case 83:
                                break;
                            default:
                                continue;
                        }
                        i8 = 49728;
                    }
                    jSONObject3.put(C0002.m6(f29short, 257, 9, 1596), parseInt);
                    jSONObject3.put(C0008.m27(f29short, 266, 5, 2856), 48);
                    jSONObject3.put(C0007.m26(f29short, 271, 5, 3237), Integer.MAX_VALUE);
                    jSONObject3.put(m27, jSONArray);
                    return jSONObject3.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:103:0x033a, code lost:
    
        r0 = 49790;
     */
    /* JADX WARN: Code restructure failed: missing block: B:104:0x033d, code lost:
    
        r0 = r0 ^ 49807;
     */
    /* JADX WARN: Code restructure failed: missing block: B:105:0x0341, code lost:
    
        switch(r0) {
            case 18: goto L112;
            case 241: goto L113;
            default: goto L115;
        };
     */
    /* JADX WARN: Code restructure failed: missing block: B:107:0x0339, code lost:
    
        throw r1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:109:0x0345, code lost:
    
        r0 = 49821;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:52:0x023e. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String detailContent(java.util.List<java.lang.String> r12) {
        /*
            Method dump skipped, instructions count: 944
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Jpys.detailContent(java.util.List):java.lang.String");
    }

    public String homeContent(boolean z) {
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                        break;
                    case 49:
                        if (!isEmpty) {
                            break;
                        } else {
                            i = 1709;
                        }
                    case 204:
                        h();
                        break;
                    case 239:
                        break;
                    default:
                        continue;
                }
                i = 1678;
            }
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(C0009.m30(f29short, 726, 5, 973), new JSONArray(C0009.m30(f29short, 592, 134, 1924)));
            return jSONObject.toString();
        } catch (Throwable th) {
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:20:0x0084. Please report as an issue. */
    public String homeVideoContent() {
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = isEmpty ? 1709 : 1678;
                    case 204:
                        h();
                        break;
                    case 239:
                        break;
                }
            }
            JSONArray jSONArray = new JSONArray();
            String str = this.h + C0011.m35(f29short, 731, 38, 2313);
            String valueOf = String.valueOf(System.currentTimeMillis());
            JSONArray jSONArray2 = new JSONObject(fP.oq(str, V0(C0008.m27(f29short, 769, 39, 2213) + valueOf, valueOf))).getJSONArray(C0009.m30(f29short, 808, 4, 893));
            int i2 = 0;
            while (true) {
                int length = jSONArray2.length();
                int i3 = 1740;
                while (true) {
                    i3 ^= 1757;
                    switch (i3) {
                        case 17:
                            i3 = i2 < length ? 1833 : 1802;
                        case 54:
                        case 471:
                            break;
                        case 500:
                            JSONObject jSONObject = jSONArray2.getJSONObject(i2);
                            String string = jSONObject.getString(C0004.m12(f29short, 812, 5, 1046));
                            String string2 = jSONObject.getString(C0013.m41(f29short, 817, 7, 1527));
                            String string3 = jSONObject.getString(C0014.m43(f29short, 824, 6, 2409));
                            String string4 = jSONObject.getString(C0006.m18(f29short, 830, 10, 1734));
                            JSONObject jSONObject2 = new JSONObject();
                            jSONObject2.put(C0007.m26(f29short, 840, 6, 2710), string);
                            jSONObject2.put(C0001.m3(f29short, 846, 8, 748), string2);
                            jSONObject2.put(C0015.m47(f29short, 854, 7, 3022), string3);
                            jSONObject2.put(C0003.m9(f29short, 861, 11, 2584), string4);
                            jSONArray.put(jSONObject2);
                            int i4 = i2 + 1;
                            int i5 = 1864;
                            while (true) {
                                i5 ^= 1881;
                                switch (i5) {
                                    case 17:
                                        i5 = 48674;
                                        break;
                                    case 47483:
                                        break;
                                }
                            }
                            i2 = i4;
                            break;
                    }
                    JSONObject jSONObject3 = new JSONObject();
                    jSONObject3.put(C0007.m26(f29short, 872, 4, 3044), jSONArray);
                    return jSONObject3.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:9:0x0014, code lost:
    
        return;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void init(android.content.Context r2, java.lang.String r3) {
        /*
            r1 = this;
            java.lang.String r0 = "ۤ۠۟"
        L2:
            int r0 = com.github.catvod.parser.C0006.m20(r0)
            switch(r0) {
                case 1751523: goto Le;
                case 1755590: goto L14;
                default: goto L9;
            }
        L9:
            r1.j = r3
            java.lang.String r0 = "ۨۧۥ"
            goto L2
        Le:
            super.init(r2)
            java.lang.String r0 = "ۧۤۥ"
            goto L2
        L14:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Jpys.init(android.content.Context, java.lang.String):void");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x00aa. Please report as an issue. */
    public String playerContent(String str, String str2, List<String> list) {
        String jSONObject;
        String m27 = C0008.m27(f29short, 876, 5, 1425);
        String m56 = C0018.m56(f29short, 881, 3, 2026);
        try {
            String[] split = str2.split(C0003.m9(f29short, 884, 2, 3059));
            String str3 = split[0];
            String str4 = split[1];
            String str5 = this.h + C0004.m12(f29short, 886, 48, 415) + str4 + m27 + str3;
            String valueOf = String.valueOf(System.currentTimeMillis());
            JSONObject jSONObject2 = new JSONObject(fP.oq(str5, V0(C0000.m1(f29short, 934, 3, 429) + str4 + m27 + str3 + C0001.m3(f29short, 937, 40, 1655) + valueOf, valueOf)));
            boolean has = jSONObject2.has(m56);
            String m52 = C0017.m52(f29short, 977, 5, 2951);
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = has ? 1709 : 1678;
                    case 204:
                        String string = jSONObject2.getString(m56);
                        JSONObject jSONObject3 = new JSONObject();
                        jSONObject3.put(m56, string);
                        jSONObject3.put(m52, 0);
                        jSONObject = jSONObject3.toString();
                        break;
                    case 239:
                        String string2 = jSONObject2.getJSONObject(C0005.m17(f29short, 982, 4, 1505)).getString(C0006.m18(f29short, 986, 7, 593));
                        JSONObject jSONObject4 = new JSONObject();
                        jSONObject4.put(m56, string2);
                        jSONObject4.put(m52, 0);
                        jSONObject = jSONObject4.toString();
                        break;
                }
            }
            return jSONObject;
        } catch (Exception e) {
            SpiderDebug.log(e);
            return null;
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:21:0x00ca. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:55:0x0185. Please report as an issue. */
    public String searchContent(String str, boolean z) {
        String m1 = C0000.m1(f29short, 993, 4, 2536);
        try {
            JSONArray jSONArray = new JSONArray();
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = isEmpty ? 1709 : 1678;
                    case 204:
                        h();
                        break;
                    case 239:
                        break;
                }
            }
            String str2 = this.h + C0001.m3(f29short, 997, 51, 3102) + URLEncoder.encode(str) + C0006.m18(f29short, 1048, 21, 2646);
            String valueOf = String.valueOf(System.currentTimeMillis());
            JSONArray jSONArray2 = new JSONObject(fP.oq(str2, V0(C0002.m6(f29short, 1069, 8, 386) + str + C0004.m12(f29short, 1077, 61, 2371) + valueOf, valueOf))).getJSONObject(C0001.m3(f29short, 1138, 4, 1615)).getJSONObject(C0013.m41(f29short, 1142, 6, 1969)).getJSONArray(m1);
            int i2 = 0;
            while (true) {
                int length = jSONArray2.length();
                int i3 = 1740;
                while (true) {
                    i3 ^= 1757;
                    switch (i3) {
                        case 17:
                            i3 = i2 < length ? 1833 : 1802;
                        case 54:
                        case 471:
                            break;
                        case 500:
                            JSONObject jSONObject = jSONArray2.getJSONObject(i2);
                            JSONObject jSONObject2 = new JSONObject();
                            jSONObject2.put(C0018.m56(f29short, 1148, 6, 1768), jSONObject.getString(C0012.m37(f29short, 1154, 5, 3216)));
                            jSONObject2.put(C0017.m52(f29short, 1159, 8, 2254), jSONObject.getString(C0000.m1(f29short, 1167, 7, 2546)));
                            jSONObject2.put(C0005.m17(f29short, 1174, 7, 451), jSONObject.optString(C0007.m26(f29short, 1181, 6, 1959)));
                            String optString = jSONObject.optString(C0007.m26(f29short, 1187, 10, 2489));
                            boolean equals = optString.equals(C0009.m30(f29short, 1197, 4, 585));
                            int i4 = 1864;
                            while (true) {
                                i4 ^= 1881;
                                switch (i4) {
                                    case 17:
                                        i4 = equals ? 48736 : 48705;
                                    case 47384:
                                        break;
                                    case 47417:
                                        optString = "";
                                        break;
                                    case 47483:
                                }
                            }
                            jSONObject2.put(C0001.m3(f29short, 1201, 11, 1747), optString);
                            jSONArray.put(jSONObject2);
                            int i5 = i2 + 1;
                            int i6 = 48767;
                            while (true) {
                                i6 ^= 48784;
                                switch (i6) {
                                    case 14:
                                        break;
                                    case 239:
                                        i6 = 48798;
                                }
                            }
                            i2 = i5;
                            break;
                    }
                    JSONObject jSONObject3 = new JSONObject();
                    jSONObject3.put(m1, jSONArray);
                    return jSONObject3.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }
}
